< previous page
page_250
next page >
Page 250
Just add the following line of code before the end of the GetCLSIDAsString method to free the string that the MemoryPointer variable points to. The memory leak will vanish.
Call CoTaskMemFree(MemoryPointer)
< previous page
page_250
next page >